#ifdef HAVE_CONFIG_H
#  include <config.h>
#endif

#include <gtk/gtk.h>

#include "callbacks.h"
#include "interface.h"
#include "support.h"
#include "bilan.h"
/*void
on_button9_clicked                     (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
<<<<<<< .mine
on_button8_clicked (GtkWidget *objet_graphique, gpointer user_data)                
{char password[15];
    char login[15];
    char pswrd[15]="0000";
    char log[15]="admin";
    int r=5;
    int i=1,x,y;
	do{	
	GtkWidget *entry1;
	GtkWidget *entry2;
=======
on_button8_clicked        (GtkWidget *objet_graphique, gpointer user_data)
{char password[15];
    char login[15];
    char pswrd[15]="0000";
    char log[15]="admin";
    
int x,y;
       
    GtkWidget *entry1;
    GtkWidget *entry2;
    GtkWidget *output1;
>>>>>>> .r75

<<<<<<< .mine
	GtkWidget *window2;
	GtkWidget *window1;
	entry1 = lookup_widget(objet_graphique, "entry1");
	entry2 = lookup_widget(objet_graphique, "entry2");

	strcpy(login, gtk_entry_get_text(GTK_ENTRY(entry1)));
	strcpy(password, gtk_entry_get_text(GTK_ENTRY(entry2)));
	x=strcmp(log,login);
	y=strcmp(pswrd,password);
    if ((x==0) && (y==0))
    {window2 = create_window2();
	gtk_widget_show(window2);
        
        break;
    }
    else
	{window1 = create_window1();
	gtk_widget_show(window1);
	}
}	
while(i<=r);

=======
    GtkWidget *window2;
    GtkWidget *window1;
    entry1 = lookup_widget(objet_graphique, "entry1");
    entry2 = lookup_widget(objet_graphique, "entry2");

    output1= lookup_widget(objet_graphique, "label73");

    strcpy(login, gtk_entry_get_text(GTK_ENTRY(entry1)));
    strcpy(password, gtk_entry_get_text(GTK_ENTRY(entry2)));
   x=strcmp(log,login);
y=strcmp(pswrd,password);

    if ((x==0) && (y==0))
    {window2 = create_window2();
    gtk_widget_show(window2);
       
     
    }
    else
    {
      window1 = create_window1();
    gtk_widget_show(window1);
    }   
	

>>>>>>> .r75
}
/*



void
on_button42_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button7_clicked                     (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button1_clicked                     (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button4_clicked                     (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button5_clicked                     (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button46_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button20_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button21_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button19_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button18_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button16_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button17_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button15_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button12_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button11_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button13_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button38_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button23_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button24_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button25_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button26_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button28_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button30_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button29_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button27_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button31_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button33_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button35_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button34_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button37_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button45_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}

<<<<<<< .mine

void
on_button120_clicked                   (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button118_clicked                   (GtkButton       *button,
                                        gpointer         user_data)
{

}*/


void
on_button121_clicked  (GtkWidget *objet_graphique, gpointer user_data)                 
{	int id;
	
	GtkWidget * label74;
	label74= lookup_widget(objet_graphique, "label5");
        afficher_alerte();
	FILE *f;
	f=fopen("alerte.txt",r);
	  if(f==NULL)
    {
    printf("erreur ouverture fichier");
    }
    else {while(fscanf(f,"%d\n",id)!=EOF);
		sprintf("%d\n",id);
	}
	fclose(f);
	gtk_label_set_text(GTK_LABEL(label74), id);
}

/*
void
on_button122_clicked                   (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button123_clicked                   (GtkButton       *button,
                                        gpointer         user_data)
{

}

=======

gboolean
on_button42_delete_event               (GtkWidget       *widget,
                                        GdkEvent        *event,
                                        gpointer         user_data)
{

  return FALSE;
}


void
on_button22_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button40_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button39_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button44_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button43_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


gboolean
on_button120_destroy_event             (GtkWidget       *widget,
                                        GdkEvent        *event,
                                        gpointer         user_data)
{

  return FALSE;
}


gboolean
on_button121_delete_event              (GtkWidget       *widget,
                                        GdkEvent        *event,
                                        gpointer         user_data)
{

  return FALSE;
}


void
on_button112_clicked                   (GtkButton       *button,
                                        gpointer         user_data)
{

}

>>>>>>> .r75
